const util = require('../../utils/util.js')
const config = require('../../config.js');

Page({
  data: {
   userInfo: {},
   autoplay: true,
   interval: 5000,
   duration: 1000,
   indicatorDots: false,
   imgUrls: [{
     url: config.serverUrl + "/web/api/h1.jpg",
     key: "image1"
   }, {
     url: config.serverUrl + "/web/api/h2.jpg",
     key: "image2"
   }, {
     url: config.serverUrl + "/web/api/h3.jpg",
     key: "image3"
   }]
  },
  onLoad: function () {
    console.log(getApp().globalData)
    var globalData = getApp().globalData;
    this.setData({
      userInfo: globalData.userInfo
    });
    console.log(this.data.userInfo)
  },
  onShow: function () {
    
  }
})
